package com.durian.finance.mapper;


import com.durian.financial.api.domain.Business;

import java.util.List;

/**
 * 商户Mapper接口
 * 
 * @author durian
 * @date 2022-06-22
 */
public interface BusinessMapper 
{
    /**
     * 查询商户
     * 
     * @param id 商户主键
     * @return 商户
     */
    public Business selectBusinessById(Long id);

    /**
     * 查询商户列表
     * 
     * @param business 商户
     * @return 商户集合
     */
    public List<Business> selectBusinessList(Business business);

    /**
     * 新增商户
     * 
     * @param business 商户
     * @return 结果
     */
    public int insertBusiness(Business business);

    /**
     * 修改商户
     * 
     * @param business 商户
     * @return 结果
     */
    public int updateBusiness(Business business);

    /**
     * 删除商户
     * 
     * @param id 商户主键
     * @return 结果
     */
    public int deleteBusinessById(Long id);

    /**
     * 批量删除商户
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBusinessByIds(Long[] ids);
}
